package  SwingWork;
import java.awt.*;
import javax.swing.*;


public class  imageDemo
{


    public imageDemo(){


        JFrame frame=new JFrame();





        JPanel panel=new JPanel();





        //必须设置为透明的。否则看不到图片
        panel.setOpaque(false);

        frame.add(panel);


        frame.setVisible(true);




    }
    public static void main(String[] args)
    {
        new imageDemo();
    }
}